remove insistence that we have expat for kml, gtrnctr, ignrando, wfff, osm now that...
authortsteven4@gmail.com <tsteven4@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 15 Aug 2013 22:38:22 +0000 (22:38 +0000)
committertsteven4@gmail.com <tsteven4@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 15 Aug 2013 22:38:22 +0000 (22:38 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4537 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gtrnctr.cc
gpsbabel/ignrando.cc
gpsbabel/kml.cc
gpsbabel/osm.cc
gpsbabel/wfff_xml.cc

index 737b15f4a6846dc8c1092e470031490690629d1c..d6ed2ffdf22efdc927aec0cec87622ee36dedad7 100644 (file)
@@ -62,25 +62,6 @@ arglist_t gtc_args[] = {
   ARG_TERMINATOR
 };
 
-#if ! HAVE_LIBEXPAT
-static void
-gtc_rd_init(const char* fname)
-{
-  fatal(MYNAME ": this format does not support reading.\n");
-}
-
-static void
-gtc_read(void)
-{
-}
-
-static void
-gtc_rd_deinit(void)
-{
-
-}
-#else
-
 /* Tracks */
 static xg_callback     gtc_trk_s;
 static xg_callback     gtc_trk_ident;
@@ -197,7 +178,6 @@ gtc_rd_deinit(void)
 {
   xml_deinit();
 }
-#endif
 
 static void
 gtc_wr_init(const char* fname)
index 0e1b5a6b250ee5a63cb32b63dfbce1ca63714076..776685a52df5121f4f4a1d51bbcb0f5f7abb429b 100644 (file)
 #include "defs.h"
 #include "xmlgeneric.h"
 
-#if HAVE_LIBEXPAT
-#include <expat.h>
-#endif
-
 #define MYNAME "IGNRando"
 
 static gbfile* fout;
@@ -52,26 +48,6 @@ static arglist_t ignr_args[] = {
   ARG_TERMINATOR
 };
 
-#if ! HAVE_LIBEXPAT
-
-static void
-ignr_rd_init(const char* fname)
-{
-  fatal(MYNAME ": This build excluded \"" MYNAME "\" input support because expat was not installed.\n");
-}
-
-static void
-ignr_read(void)
-{
-}
-
-static void
-ignr_rd_deinit(void)
-{
-}
-
-#else
-
 
 static xg_callback     ignr_start;
 static xg_callback     ignr_nb_etapes, ignr_descr;
@@ -191,8 +167,6 @@ ignr_read(void)
   xml_read();
 }
 
-#endif
-
 /* write support */
 
 /* callbacks registered in ignr_vecs */
index 40d6ee0f41b42d48c2ac78214e36a635559806c5..7a39fb915adf49bcc472444cf62cc58f0342eb93 100644 (file)
@@ -241,19 +241,6 @@ static void kml_step_color(void)
   kml_color_sequencer.seq = kml_color_sequencer.seq + kml_color_sequencer.step;
 }
 
-#if ! HAVE_LIBEXPAT
-static void
-kml_rd_init(const char* fname)
-{
-  fatal(MYNAME ": This build excluded KML support because expat was not installed.\n");
-}
-
-static void
-kml_read(void)
-{
-}
-#else
-
 static xg_callback wpt_s, wpt_e;
 static xg_callback wpt_name, wpt_desc, wpt_coord, wpt_icon, trk_coord, wpt_time;
 
@@ -396,7 +383,6 @@ kml_read(void)
 {
   xml_read();
 }
-#endif
 
 static void
 kml_rd_deinit(void)
index 292f8b2ccef43ab9027fbc06b70d9cbc2c73a840..fa27219e7c8f2fa7cf8fa27e33779bdfe9ccaab4 100644 (file)
@@ -46,10 +46,8 @@ static gbfile* fout;
 static int node_id;
 static int skip_rte;
 
-#if HAVE_LIBEXPAT
 static route_head* rte;
 static waypoint* wpt;
-static int wpt_loaded, rte_loaded;
 
 static xg_callback     osm_node, osm_node_tag, osm_node_end;
 static xg_callback     osm_way, osm_way_nd, osm_way_tag, osm_way_end;
@@ -65,7 +63,6 @@ xg_tag_mapping osm_map[] = {
   { osm_way_end,       cb_end,         "/osm/way" },
   { NULL,      (xg_cb_type)0,          NULL }
 };
-#endif // HAVE_LIBEXPAT
 
 static const char* osm_features[] = {
   "- dummy -", /*  0 */
@@ -403,21 +400,6 @@ static osm_icon_mapping_t osm_icon_mappings[] = {
   { -1, NULL, NULL }
 };
 
-#if ! HAVE_LIBEXPAT
-
-void
-osm_rd_init(const char* fname)
-{
-  fatal(MYNAME ": This build excluded \" MYNAME \" support because expat was not installed.\n");
-}
-
-void
-osm_read(void)
-{
-}
-
-#else
-
 
 /*******************************************************************************/
 /*                                   READER                                    */
@@ -670,8 +652,6 @@ osm_rd_init(const char* fname)
 {
   wpt = NULL;
   rte = NULL;
-  wpt_loaded = 0;
-  rte_loaded = 0;
 
   waypoints.clear();
   if (keys.isEmpty()) {
@@ -687,8 +667,6 @@ osm_read(void)
   xml_read();
 }
 
-#endif
-
 static void
 osm_rd_deinit(void)
 {
index 52043b12d90af0acd8da11d59810eb2077869368..333dbdb52fcd4a503b2755e8104f45b65691394a 100644 (file)
@@ -56,23 +56,6 @@ arglist_t wfff_xml_args[] = {
 #define MYNAME "wfff_xml"
 #define MY_CBUF 4096
 
-#if ! HAVE_LIBEXPAT
-void
-wfff_xml_rd_init(const char *fname)
-{
-  fatal(MYNAME ": This build excluded WFFF_XML support because expat was not installed.\n");
-}
-void
-wfff_xml_read(void)
-{
-}
-void
-wfff_xml_rd_deinit(void)
-{
-}
-
-#else
-
 static xg_callback     wfff_s,      wfff_e;
 static xg_callback     wfff_wep,    wfff_mac,    wfff_type;
 static xg_callback     wfff_ssid,   wfff_chan;
@@ -310,8 +293,6 @@ wfff_xml_rd_deinit(void)
 
 }
 
-#endif
-
 ff_vecs_t wfff_xml_vecs = {
   ff_type_file,
   {ff_cap_read, ff_cap_none, ff_cap_none},